using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN TietHocServiceBase****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:07/10/2010 39:07:23</para>
	/// <para>Class Name: TietHocServiceBase</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class TietHocService : ITietHocService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: TietHoc_ID</para>
		/// <para>Output: TietHocEntity</para>
		///</summary>
		public TietHocEntity SelectOne(int TietHoc_ID){
			TietHocDAO dao = new TietHocDAO();
			return dao.SelectOne(TietHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectOneByMaTietHoc</para>
		/// <para>Input: MaTietHoc</para>
		/// <para>Output: TietHocEntity</para>
		///</summary>
		public TietHocEntity SelectOneByMaTietHoc(string MaTietHoc){
			TietHocDAO dao = new TietHocDAO();
			return dao.SelectOneByMaTietHoc(MaTietHoc);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of TietHocEntity</para>
		///</summary>
		public List<TietHocEntity> SelectAll(){
			TietHocDAO dao = new TietHocDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			TietHocDAO dao = new TietHocDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of TietHocEntity</para>
		///</summary>
		public List<TietHocEntity> SelectAllFilter(string strFilter){
			TietHocDAO dao = new TietHocDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			TietHocDAO dao = new TietHocDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: Save</para>
		/// <para>Input: TietHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(TietHocEntity o){
			TietHocDAO dao = new TietHocDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: Save</para>
		/// <para>Input: TietHocEntity</para>
		/// <para>Output: TietHocEntity</para>
		///</summary>
		public TietHocEntity SaveRet(TietHocEntity o){
			TietHocDAO dao = new TietHocDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of TietHocEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<TietHocEntity> list){
			TietHocDAO dao = new TietHocDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of TietHocEntity</para>
		/// <para>Output: List of TietHocEntity</para>
		///</summary>
		public List<TietHocEntity> SaveListRet(List<TietHocEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: Update</para>
		/// <para>Input: TietHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(TietHocEntity o){
			TietHocDAO dao = new TietHocDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of TietHocEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<TietHocEntity> list){
			TietHocDAO dao = new TietHocDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateMaTietHoc</para>
		/// <para>Input: NewMaTietHoc,TietHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaTietHoc(string NewMaTietHoc,int TietHoc_ID){
			TietHocDAO dao = new TietHocDAO();
			return dao.UpdateMaTietHoc(NewMaTietHoc,TietHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateTenTietHoc</para>
		/// <para>Input: NewTenTietHoc,TietHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenTietHoc(string NewTenTietHoc,int TietHoc_ID){
			TietHocDAO dao = new TietHocDAO();
			return dao.UpdateTenTietHoc(NewTenTietHoc,TietHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateGhiChu</para>
		/// <para>Input: NewGhiChu,TietHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateGhiChu(string NewGhiChu,int TietHoc_ID){
			TietHocDAO dao = new TietHocDAO();
			return dao.UpdateGhiChu(NewGhiChu,TietHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateThuTu</para>
		/// <para>Input: NewThuTu,TietHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateThuTu(int NewThuTu,int TietHoc_ID){
			TietHocDAO dao = new TietHocDAO();
			return dao.UpdateThuTu(NewThuTu,TietHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateCaHoc_ID</para>
		/// <para>Input: NewCaHoc_ID,TietHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateCaHoc_ID(int NewCaHoc_ID,int TietHoc_ID){
			TietHocDAO dao = new TietHocDAO();
			return dao.UpdateCaHoc_ID(NewCaHoc_ID,TietHoc_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: Delete</para>
		/// <para>Input: TietHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(TietHocEntity o){
			TietHocDAO dao = new TietHocDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: TietHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int TietHoc_ID){
			TietHocDAO dao = new TietHocDAO();
			return dao.DeleteByID(TietHoc_ID);
		}
		#endregion

		#region Select join to CaHoc functions
		#endregion

		#region Select,delete by TietHoc_ID functions
		#endregion

		#region Select,delete by CaHoc_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END TietHocWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

